import request from '@/utils/request'

// 查询采购分配触发ITEM列表
export function listTriggerItem(query) {
  return request({
    url: '/productAllocation/triggerItem/list',
    method: 'get',
    params: query
  })
}

// 查询采购分配触发ITEM详细
export function getTriggerItem(id) {
  return request({
    url: '/productAllocation/triggerItem/' + id,
    method: 'get'
  })
}

// 新增采购分配触发ITEM
export function addTriggerItem(data) {
  return request({
    url: '/productAllocation/triggerItem',
    method: 'post',
    data: data
  })
}

// 修改采购分配触发ITEM
export function updateTriggerItem(data) {
  return request({
    url: '/productAllocation/triggerItem',
    method: 'put',
    data: data
  })
}

// 删除采购分配触发ITEM
export function delTriggerItem(id) {
  return request({
    url: '/productAllocation/triggerItem/' + id,
    method: 'delete'
  })
}
